package com.yoso.shop.infrastructure.dao.dictionary;

import com.yoso.base.infrastructure.dao.BaseMapper;
import com.yoso.shop.domain.dictionary.DictionaryEntity;
import com.yoso.shop.domain.dictionary.DictionaryEntityExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface DictionaryEntityMapper extends BaseMapper<DictionaryEntity, DictionaryEntityExample> {
    @Override
    long countByExample(DictionaryEntityExample example);

    @Override
    int deleteByExample(DictionaryEntityExample example);

    @Override
    int deleteByPrimaryKey(String id);

    @Override
    int insert(DictionaryEntity record);

    @Override
    int insertSelective(DictionaryEntity record);

    @Override
    List<DictionaryEntity> selectByExample(DictionaryEntityExample example);

    @Override
    DictionaryEntity selectByPrimaryKey(String id);

    @Override
    int updateByExampleSelective(@Param("record") DictionaryEntity record, @Param("example") DictionaryEntityExample example);

    @Override
    int updateByExample(@Param("record") DictionaryEntity record, @Param("example") DictionaryEntityExample example);

    @Override
    int updateByPrimaryKeySelective(DictionaryEntity record);

    @Override
    int updateByPrimaryKey(DictionaryEntity record);
}